package com.ara.x.retrofit;


import com.ara.common.kernel.network.RetrofitHolder;
import com.ara.x.retrofit.api.MainApi;

/**
 * Created by XieXin on 2021/5/18.
 * 主模块Api持有人
 */
public class MainApiHolder {
    private static MainApi mainApi;

    /**
     * 主模块API
     */
    public static MainApi getMainApi() {
        if (mainApi == null) mainApi = RetrofitHolder.getInstance().create(MainApi.class);
        return mainApi;
    }

}
